//
//  SPApplication.swift
//  SitPosition
//
//  Created by apple on 2019/2/18.
//  Copyright © 2019 apple. All rights reserved.
//

import Foundation
import UIKit

// UIApplication接收到外部事件的通知

@objc(SPApplication) class SPApplication: UIApplication {
    
    public var onSendEvent: ((_ event: UIEvent) -> Void)? = nil
    
    override func sendEvent(_ event: UIEvent) {
        super.sendEvent(event)
        onSendEvent?(event)
    }
}

